deploy{
  final DeploymentUnit deploymentUnit=phaseContext.getDeploymentUnit();
  if (!SwitchYardDeploymentMarker.isSwitchYardDeployment(deploymentUnit)) {
  if (WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) {
    final DeploymentUnit parent=deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
      checkExtension(DELTASPIKE_CDI_EXTENSION,deploymentUnit,parent);
}
checkExtension{
  final Module module=deploymentUnit.getAttachment(Attachments.MODULE);
  final List<Metadata<Extension>> extensions=parent.getAttachmentList(WeldAttachments.PORTABLE_EXTENSIONS);
    if (extension.getLocation().equals(extensionName)) {
      Class<?> extensionClass=module.getClassLoader().loadClass(extensionName);
      final Extension extensionInstance=(Extension)extensionClass.newInstance();
      Metadata<Extension> metadata=new Metadata<Extension>(){
      parent.addToAttachmentList(WeldAttachments.PORTABLE_EXTENSIONS,metadata);
      throw new DeploymentUnitProcessingException(ie);
      throw new DeploymentUnitProcessingException(iae);
      throw new DeploymentUnitProcessingException(cnfe);
}
getValue{ }
getLocation{ }
undeploy{ }
